package com.xd.clap.services;

import com.xd.clap.entity.Orders;
import com.xd.clap.entity.request.OrderParam;
import com.xd.clap.entity.request.PageParam;
import com.xd.clap.entity.response.Result;

public interface OrderService {
    /**
     *创建订单
     */
    Result createOrder(OrderParam orderParam);

    /**
     *查询所有订单
     */
    Result getOrdersPage(PageParam pageParam);

    /**
     *查询用户的订单
     */
    Result getOrders(PageParam pageParam);

    /**
     * 修改订单状态
     */
    Result updateState(Orders orders);

}
